package com.hjn.springcloud.controller;

import com.hjn.springcloud.entity.UserPo;
import com.hjn.springcloud.service.UserService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huaijn
 * @date 2021/12/23-13:36
 * @description todo
 */
@RestController
@RequestMapping("/userCtl")
public class UserController {

  @Autowired
  public UserService userService;

  @RequestMapping("/queryAllUser")
  public List<UserPo> queryAllUser(){
    return userService.queryAllUser();
  }

}
